#pragma once 
#include<iostream>
#include"Protocol.hpp"


namespace wyl
{
  class Task
  {
  private:
    int _sock; 
    CallBack _hander; 

  public:
    Task(){} 
    Task(int sock) : _sock(sock) {}
    
    void operator()()
    {
      ProcessOn();
      return;
    }

    void ProcessOn()
    {
      _hander(_sock);
    }
    ~Task(){}
  };



};
